#pragma once
#include "BaseFunByOneVar.h"

namespace Net
{

class FunByCos : public BaseFunByOneVar
{
public:
    FunByCos() : BaseFunByOneVar(FunType_E::Cos_E, "Cos")
    {

    }

    ~FunByCos()
    {

    }

    Value_t runFun(Value_t x) final
    {
        return std::cos(x);
    }

    Value_t runDiff(Value_t x) final
    {
        return -std::sin(x);
    }
};

}